import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useLanguageStore = defineStore(
  'cp-language',
  () => {
    //修改语言
    const changeLanguage = (lang) => {
      localStorage.setItem('language', lang)
    }

    return {
      changeLanguage
    }
  },
  {
    //开启持久化
    persist: true
  }
)
